﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.popups.achievement {
    import reprise.ui.*;
    import net.wooga.pets.views.popups.*;
    import net.wooga.pets.utils.*;

    public class AchievementBookPopup extends AbstractPopupView {

        private var _contentDisplay:UIComponent;
        private var _achievements:Array;

        public function AchievementBookPopup(){
            this._achievements = [];
            super();
            _isQueued = false;
        }
        override protected function initialize():void{
            super.initialize();
            cssID = "achievementBook";
            addCSSClass("myriadProFont");
        }
        override protected function createChildren():void{
            super.createChildren();
            this._contentDisplay = RepriseUtils.addComponent(this, "contentDisplay");
        }
        public function createAchievementBox(_arg1:String):AchievementBox{
            var _local2:AchievementBox = AchievementBox(this._contentDisplay.addChild(new AchievementBox(_arg1)));
            this._achievements.push(_local2);
            return (_local2);
        }
        public function reset():void{
            var _local1:AchievementBox;
            for each (_local1 in this._achievements) {
                _local1.remove();
                _local1 = null;
            };
            this._achievements = [];
        }

    }
}//package net.wooga.pets.views.popups.achievement 
